package com.lkf.simplewebcontainer.http;

import io.netty.handler.codec.http.HttpResponseStatus;

import java.io.File;

/**
 * Response接口定义
 */
public interface Response {
    /**
     * 生成http响应
     *
     * @param content
     * @return
     */
    void write(String content, HttpResponseStatus status, String contentType) throws Exception;

    void writeFile(File file, HttpResponseStatus status, String contentType) throws Exception;

}
